import sqlite3
import connector.DatabaseDriver
from connector.DatabaseDriver import DatabaseDriver


def insert_notice(driver: DatabaseDriver, notice: str) -> int:
    return driver.insert(
        sql='insert into announcement(text) values ("{}")'.format(notice))